package cn.hotel.mapper;

import cn.hotel.entity.Room;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
public interface RoomMapper {
    public Room queryRoomByTypeId(@Param("typeId") String typeId);

    //获取所有的房间信息
    List<Room> getAllRoomInfo();

    //添加房间信息
    void insertRoom(Room room);

    //通过房间id查询房间信息
    Room queryRoomInfoByRoomId(int roomId);

    //更新房间信息
    void updateRoomInfo(Room room);

    //删除房间信息
    void deleteRoomByRoomId(int roomId);
}
